
def get_paperidx_pairset_list(cluster_paperidx_list):
    paperidx_pairset_list = []

    for cluster_paperidx in cluster_paperidx_list:
        for i in range(len(cluster_paperidx)-1):
            for j in range(i+1, len(cluster_paperidx)):
                paperidx_pairset_list.append( set( [ list(cluster_paperidx)[i], list(cluster_paperidx)[j] ] ) )
    return paperidx_pairset_list